package Work0516;

/**
 * 潜水艇
 * 
 * 
 * @author Y
 *
 */
public class Submarine implements Swimming {
	private String name;

	public Submarine(String name) {
		this.name = name;
	}

	public void swim() {
		System.out.println(name + "使用旋转螺旋桨在水中行驶");
	}

}
